package io.renren.modules.member.service.impl;

import io.renren.modules.member.dao.TStoreMemberAccountDetailDao;
import io.renren.modules.member.entity.TStoreMemberAccountDetailEntity;
import io.renren.modules.member.service.TStoreMemberAccountDetailService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;


@Service("tStoreMemberAccountDetailService")
public class TStoreMemberAccountDetailServiceImpl extends ServiceImpl<TStoreMemberAccountDetailDao, TStoreMemberAccountDetailEntity> implements TStoreMemberAccountDetailService {

    @Autowired
    private TStoreMemberAccountDetailDao tStoreMemberAccountDetailDao;

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<TStoreMemberAccountDetailEntity> page = this.page(
                new Query<TStoreMemberAccountDetailEntity>().getPage(params),
                new QueryWrapper<TStoreMemberAccountDetailEntity>()

        );

        return new PageUtils(page);
    }

    @Override
    public void updateMemberAccount(Map<String, Object> params) {
        tStoreMemberAccountDetailDao.updateMemberAccount(params);
    }

    @Override
    public void updateMemberAccountConsume(Map<String, Object> map) {
        tStoreMemberAccountDetailDao.updateMemberAccountConsume(map);
    }

}